//
//  UIView.swift
//  MasterBoy
//
//  Created by kyson on 2024/9/20.
//

import Foundation


import UIKit

extension UIView {
    func setDynamicBackgroundColor() {
        backgroundColor = ThemeManager.shared.dynamicBackgroundColor()
        
        if self.isKind(of: UISearchBar.self) {
            print("use setDynamicSearchBarBackgroundColor instead")
        }
        
    }
    
    func setDynamicSeperateLineColor() {
        backgroundColor = ThemeManager.shared.dynamicSeperateLineColor()
    }
    
    func setDynamicForgroundColor() {
        backgroundColor = ThemeManager.shared.dynamicForgroundColor()
    }
    
}
